package main

import "fmt"

func main() {

	//基础if/else
	if 7%2 == 0 {
		fmt.Println("7 is even")
	} else {
		fmt.Println("7 is odd")
	}

	//没有else
	if true {
		fmt.Println("true")
	}

	//多重if/else
	num := 9
	if num < 0 {
		fmt.Println(num, "小于0")
	} else if num < 10 {
		fmt.Println(num, "小于10")
	} else {
		fmt.Println(num)
	}

}
